<include file='Common:header'/>
	<title>{$Think.config.WEBNAME}-用户个人页</title>
	<link rel="stylesheet" href="__PUBLIC__/Home/Theme/{$style}/Css/nav.css" />
	<link rel="stylesheet" href="__PUBLIC__/Home/Theme/{$style}/Css/user.css" />
	<link rel="stylesheet" href="__PUBLIC__/Home/Theme/{$style}/Css/bottom.css" />
        <link rel="stylesheet" href="__PUBLIC__/Home/Uploadify/uploadify.css"/>
	<script type="text/javascript" src='__PUBLIC__/Home/Js/jquery-1.7.2.min.js'></script>
    <script type="text/javascript" src='__PUBLIC__/Home/Uploadify/jquery.uploadify.min.js'></script>
	<script type='text/javascript' src='__PUBLIC__/Home/Js/nav.js'></script>
	<script type='text/javascript' src='__PUBLIC__/Home/Js/index.js'></script>
    <script type='text/javascript'>
        var PUBLIC = '__PUBLIC__';
        var Url = '{:U("Base/uploadPic","","")}';
        var sid = '{:session_id()}';
        var ROOT = '__ROOT__';
        var commentUrl = "{:U('Index/comment','','')}";
        var getComment = '{:U("Index/getComment","","")}';
        var keepUrl = '{:U("Index/keep","","")}';
        var delWeibo = '{:U("Index/delWeibo","","")}';
    </script>
<!--==========顶部固定导行条==========-->
<include file='Common:nav'/>
<!--==========顶部固定导行条==========-->
<!--==========内容主体==========-->
	<div style='height:40px;opcity:10'></div>
	<div id='userinfo'>
		<div class='info-list'>
			<div class='info-face'>
				<p>
					<img src="<if condition='$userinfo["face_medium"]'>__ROOT__/{$userinfo.face_medium}<else/>__PUBLIC__/Home/Images/noface.gif</if>" width='180' height='180' alt="{$userinfo.username}" />
				</p>
				<ul>
					<li>
						<a href="{:U('follow/' . $userinfo['uid'],'','')}">
							<strong>{$userinfo.follow}</strong><br/>关注
						</a>
					</li>
					<li>
						<a href="{:U('fans/' . $userinfo['uid'],'','')}">
							<strong>{$userinfo.fans}</strong><br/>粉丝
						</a>
					</li>
					<li>
						<a href="{:U('./' . $userinfo['uid'],'','')}">
							<strong>{$userinfo.weibo}</strong><br/>微博
						</a>
					</li>
				</ul>
			</div>
			<ul class='uinfo'>
				<li class='uname full'>{$userinfo.username}</li>
				<li class='uintro full'>{$userinfo.intro}</li>
				<li class='ulist full'>
					<ul>
						<li><i class='icon icon-<if condition="$userinfo['sex'] eq '男'">boy<else/>girl</if>'></i></li>
						<li>{$userinfo.location}</li>
						<li class='nobr'>{$userinfo.constellation}</li>
					</ul>
				</li>
            <if condition='isset($_SESSION["uid"]) && $_SESSION["uid"] == $_GET["id"]'>
				<li class='uedit full'>
					<a href="{:U('UserSetting/index','','')}">修改个人资料</a>
				</li>
            </if>
			</ul>
		</div>
	</div>
    <div class="main">
    <!--=====左侧=====-->
        <div id="middle" class='fleft'>
        <!--微博发布框-->
        <if condition='isset($_SESSION["uid"]) && $_SESSION["uid"] == $_GET["id"]'>
            <div class='send_wrap'>
                <div class='send_title fleft'></div>
                <div class='send_prompt fright'>
                    <span>你还可以输入<span id='send_num'>200</span>个字</span>
                </div>
                <div class='send_write'>
                    <form action='{:U("Index/sendWeibo","","")}' method='post' name='weibo'>
                        <textarea sign='weibo' name='content'></textarea>
                        <span class='ta_right'></span>
                        <div class='send_tool'>
                            <ul class='fleft'>
                                <li title='表情'>
                                	<i class='icon icon-phiz phiz' sign='weibo'></i>
                                </li>
                                <li title='图片'><i class='icon icon-picture'></i>
                                <!--图片上传框-->
                                    <div id="upload_img" class='hidden'>
                                        <div class='upload-title'><p>本地上传</p><span class='close'></span></div>
                                        <div class='upload-btn'>
                                            <input type="hidden" name='max' value=''/>
                                            <input type="hidden" name='medium' value=''/>
                                            <input type="hidden" name='mini' value=''/>
                                            <input type="file" name='picture' id='picture'/>
                                        </div>
                                    </div>
                                <!--图片上传框-->
                                    <div id='pic-show' class='hidden'>
                                        <img src="" alt=""/>
                                    </div>
                                </li>
                            </ul>
                            <input type='submit' value='' class='send_btn fright' title='发布微博按钮'/>
                        </div>
                    </form>
                </div>
            </div>
        </if>
        <!--微博发布框-->
            <div class='view_line'>
                <strong>微博</strong>
            </div>
<if condition='!$weibo'>
    没有发布的微博
<else/>
<foreach name='weibo' item='v'>
    <if condition='!$v["isturn"]'>
<!--====================普通微博样式====================-->
            <div class="weibo">
                <div class="wb_cons">
                    <dl>
                    <!--用户名-->
                        <dt class='author hidden'>
                            <a href="{:U('./' . $v['uid'],'','')}">{$v.username}</a>
                        </dt>
                    <!--发布内容-->
                        <dd class='content'>
                            <p>{$v.content|replace_weibo=###}</p>
                        </dd>
                    <!--微博图片-->
                    <if condition="$v['max']">
                        <dd>
                            <div class='wb_img'>
                            <!--小图-->
                                <img src="__ROOT__/{$v.mini}" class='mini_img'/>
                                <div class="img_tool hidden">
                                    <ul>
                                        <li>
                                            <i class='icon icon-packup'></i>
                                            <span class='packup'>&nbsp;收起</span>
                                        </li>
                                        <li>|</li>
                                        <li>
                                            <i class='icon icon-bigpic'></i>
                                            <a href="__ROOT__/{$v.max}" target='_blank'>&nbsp;查看大图</a>
                                        </li>
                                    </ul>
                                <!--中图-->
                                    <div class="img_info"><img src="__ROOT__/{$v.medium}"/></div>
                                </div>
                            </div>
                        </dd>
                    </if>
                    </dl>
                <!--操作-->
                    <div class="wb_tool">
                    <!--发布时间-->
                        <span class="send_time">{$v.time|time_format=###}</span>
                        <ul>
                        <if condition='isset($_SESSION["uid"]) && $_SESSION["uid"] eq $v["uid"]'>
                            <li class='del-li hidden'><span class='del-weibo' wid='{$v.id}'>删除</span></li>
                            <li class='del-li hidden'>|</li>
                        </if>
                            <li><span class='turn' id='{$v["id"]}'>转发<if condition='$v["turn"]'>({$v.turn})</if></span></li>
                            <li>|</li>
                            <li class='keep-wrap'>
                                <span class='keep' wid='{$v.id}'>收藏<if condition='$v["keep"]'>({$v.keep})</if></span>
                                <div class='keep-up hidden'></div>
                            </li>
                            <li>|</li>
                            <li><span class='comment' wid='{$v.id}'>评论<if condition='$v["comment"]'>({$v.comment})</if></span></li>
                        </ul>
                    </div>
                <!--=====回复框=====-->
                    <div class='comment_load hidden'>
                        <img src="__PUBLIC__/Home/Images/loading.gif">评论加载中，请稍候...
                    </div>
                    <div class='comment_list hidden'>
                        <textarea name="" sign='comment{$key}'></textarea>
                        <ul>
                            <li class='phiz fleft' sign='comment{$key}'></li>
                            <li class='comment_turn fleft'>
                                <label>
                                    <input type="checkbox" name=''/>同时转发到我的微博
                                </label>
                            </li>
                            <li class='comment_btn fright' wid='{$v.id}' uid='{$v.uid}'>评论</li>
                        </ul>
                    </div>
                <!--=====回复框结束=====-->
                </div>
            </div>
    <else/>
<!--====================转发样式====================-->
            <div class="weibo">
                <div class="wb_cons">
                    <dl>
                    <!--用户名-->
                        <dt class='author hidden'>
                            <a href="{:U('./' . $v['uid'],'','')}">{$v.username}</a>
                        </dt>
                    <!--发布内容-->
                        <dd class='content'>
                            <p>{$v.content|str_replace='//', '<span style="color:#ccc;font-weight:bold;">&nbsp;//&nbsp;</span>', ###|replace_weibo=###}</p>
                        </dd>
                    <!--转发的微博内容-->
                    <if condition='$v["isturn"] eq -1'>
                        <dd class="wb_turn">该微博已被删除</dd>
                    <else/>
                        <dd>
                            <div class="wb_turn">
                                <dl>
                                <!--原作者-->
                                    <dt class='turn_name'>
                                        <a href="{:U('./' . $v['isturn']['uid'],'','')}">@{$v.isturn.username}</a>
                                    </dt>
                                <!--原微博内容-->
                                    <dd class='turn_cons'>
                                        <p>{$v.isturn.content|replace_weibo=###}</p>
                                    </dd>
                                <!--原微博图片-->
                                <if condition='$v["isturn"]["max"]'>
                                    <dd>
                                        <div class="turn_img">
                                        <!--小图-->
                                            <img src="__ROOT__/{$v.isturn.mini}" class='turn_mini_img'/>
                                            <div class="turn_img_tool hidden">
                                                <ul>
                                                    <li>
                                                        <i class='icon icon-packup'></i>
                                                        <span class='packup'>&nbsp;收起</span></li>
                                                    <li>|</li>
                                                    <li>
                                                        <i class='icon icon-bigpic'></i>
                                                        <a href="__ROOT__/{$v.isturn.max}" target='_blank'>&nbsp;查看大图</a>
                                                    </li>
                                                </ul>
                                            <!--中图-->
                                                <div class="turn_img_info">
                                                    <img src="__ROOT__/{$v.isturn.medium}"/>
                                                </div>
                                            </div>
                                        </div>
                                    </dd>
                                </if>
                                </dl>
                                <!--转发微博操作-->
                                <div class="turn_tool">
                                    <span class='send_time'>
                                        {$v.isturn.time|time_format=###}
                                    </span>
                                    <ul>
                                        <li><a href="">转发<if condition='$v["isturn"]["turn"]'>({$v.isturn.turn})</if></a></li>
                                        <li>|</li>
                                        <li><a href="">评论<if condition='$v["isturn"]["comment"]'>({$v.isturn.comment})</if></a></li>
                                    </ul>
                                </div>
                            </div>
                        </dd>
                    </if>
                    </dl>
                    <!--操作-->
                    <div class="wb_tool">
                        <!--发布时间-->
                        <span class="send_time">
                            {$v.time|time_format=###}
                        </span>
                        <ul>
                        <if condition='isset($_SESSION["uid"]) && $_SESSION["uid"] eq $v["uid"]'>
                            <li class='del-li hidden'><span class='del-weibo' wid='{$v.id}'>删除</span></li>
                            <li class='del-li hidden'>|</li>
                        </if>
                            <li><span class='turn' id='{$v.id}' tid='{$v.isturn.id}'>转发<if condition='$v["turn"]'>({$v.turn})</if></span></li>
                            <li>|</li>
                            <li class='keep-wrap'>
                                <span class='keep' wid='{$v.id}'>收藏<if condition='$v["keep"]'>({$v.keep})</if></span>
                                <div class='keep-up hidden'></div>
                            </li>
                            <li>|</li>
                            <li><span class='comment' wid='{$v.id}'>评论<if condition='$v["comment"]'>({$v.comment})</if></span></li>
                        </ul>
                    </div>
                    <!--回复框-->
                    <div class='comment_load hidden'>
                        <img src="__PUBLIC__/Home/Images/loading.gif">评论加载中，请稍候...
                    </div>
                    <div class='comment_list hidden'>
                        <textarea name="" sign='comment{$key}'></textarea>
                        <ul>
                            <li class='phiz fleft' sign='comment{$key}'></li>
                            <li class='comment_turn fleft'>
                                <label>
                                    <input type="checkbox" name=''/>同时转发到我的微博
                                </label>
                            </li>
                            <li class='comment_btn fright' wid='{$v.id}' uid='{$v.uid}'>评论</li>
                        </ul>
                    </div>
                    <!--回复框结束-->
                </div>
            </div>
<!--====================转发样式结束====================-->
    </if>
</foreach>
</if>
            <div id='page'>{$page}</div>
<!--====================转发样式结束====================-->
        </div>
        <!--==========右侧==========-->
        <div id='right'>
        	<dl>
                <if condition='isset($_SESSION["uid"]) && $_SESSION["uid"] == $_GET["id"]'>
                    <dt>我的关注({$userinfo.follow})
                <else/>
                    <dt>他的关注({$userinfo.follow})
                </if>
        		<if condition='count($fans) gt 8'><a href="">更多»</a></if></dt>
                <foreach name='follow' item='v'>
        		<dd>
        			<a href="{:U('./' . $v['uid'],'','')}">
        				<img src="<if condition='$v["face"]'>__ROOT__/{$v.face}<else/>__PUBLIC__/Home/Images/noface.gif</if>" alt="{$v.username}" width='50' height='50'/>
        			</a>
        			<p>
        				<a href="{:U('./' . $v['uid'],'','')}">{$v.username}</a>
        			</p>
        		</dd>
                </foreach>
        	</dl>
        	<dl>
                <if condition='isset($_SESSION["uid"]) && $_SESSION["uid"] == $_GET["id"]'>
                    <dt>我的粉丝({$userinfo.fans})
                <else/>
                    <dt>他的粉丝({$userinfo.fans})
                </if>
        		<if condition='count($fans) gt 8'><a href="">更多»</a></if></dt>
                <foreach name='fans' item='v'>
        		<dd>
        			<a href="{:U('./' . $v['uid'],'','')}">
        				<img src="<if condition='$v["face"]'>__ROOT__/{$v.face}<else/>__PUBLIC__/Home/Images/noface.gif</if>" alt="{$v.username}" width='50' height='50'/>
        			</a>
        			<p>
        				<a href="{:U('./' . $v['uid'],'','')}">{$v.username}</a>
        			</p>
        		</dd>
                </foreach>
        	</dl>
        </div>
    </div>
<!--==========内容主体结束==========-->
<!--==========底部==========-->
   <include file='Common:bottom'/>